﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using Sinacor.Infra.Service.Common;
using Sinacor.Infra.Common.Exceptions;
using Sinacor.Infra.Service.ExceptionHandling;
using Sinacor.Servico.Bovespa.Titulo.BusinessEntity;
using Sinacor.Infra.Service.Validation;


namespace Sinacor.Servico.Bovespa.Titulo.BusinessLogic
{
    public class Mercado : BaseBusinessLogic
    {
        #region Constantes de Erro
       
        #endregion

        #region Construtor

        private Sinacor.Servico.Bovespa.Titulo.ResourceAccess.Mercado _mercado;

        public Mercado()
            : base()
        {
            _mercado = new Sinacor.Servico.Bovespa.Titulo.ResourceAccess.Mercado();
        }
        #endregion

        #region ConsultarMercados
        public List<BusinessEntity.Mercado> ConsultarMercados(BusinessEntity.Parameter.FiltroMercado request)
        {
            List<BusinessEntity.Mercado> mercado = _mercado.ConsultarMercados(request);

            return mercado;
        }
        #endregion

    }
}
